import * as echarts from "echarts";
export default {
    tooltip: {
        trigger: "axis",
        axisPointer: {
            type: "none",
        },
    },
    legend: {
        show: true,
        textStyle: {
            color: "#fff",
        },
        right: "0%",
        itemWidth: 25,
        itemHeight: 25,
    },
    grid: {
        left: "3%",
        right: "4%",
        bottom: "3%",
        top: "15%",
        containLabel: true,
    },
    xAxis: {
        data: [],
        axisTick: { show: false },
        axisLine: {
            show: true,
            lineStyle: {
                color: "#fff",
                width: 1,
            },
        },
        axisLabel: {
            color: "#fff",
        },
    },
    yAxis: {
        name: "人次",
        nameTextStyle: {
            color: "#fff",
            padding: [0, 39, 0, 0],
        },
        position: "left",
        axisLine: {
            show: false,
        },
        axisTick: {
            show: false,
        },
        axisLabel: {
            show: true,
            color: "#fff",
            formatter: "{value}",
            interval: 1,
        },
        splitLine: {
            lineStyle: {
                type: "dashed",
                color: "#575757",
            },
        },
    },
    series: [
        {
            name: "培训人次",
            type: "pictorialBar",
            barCategoryGap: "-25%",
            symbol:
                "image://",
            label: {
                show: true,
                position: "top",
                formatter: "{c} ",
                fontSize: 16,
                color: "#fff",
            },
            itemStyle: {
                opacity: 1,
                color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                    { offset: 0, color: "rgba(118, 214, 255, 1)" },
                    { offset: 0.5, color: "rgba(7, 180, 253, 0.96)" },
                    { offset: 1, color: "rgba(169, 227, 255, 0.01)" },
                ]),
            },
            emphasis: {
                itemStyle: {
                    opacity: 0.6,
                },
            },
            data: [],
            z: 10,
        },
    ],
}